pp108 : Using Human Interaction in a Business Process Model

Using Human Interaction in a Business Process Model

This topic describes the procedure to use a human interaction activity in a business process model.

Before you begin this task:
Create a User Interface (XForm).

Business processes typically comprise automated activities as well as activities that need human intervention. When you have the need to perform an activity that needs human intervention, you need to create and use the User Interface (XForm) to complete that activity. To achieve this, perform the steps below.

  1. Do any one of the following:
    • Select a starting point and click (Business Process Model) to open a business process model. The business process model appears in the business process modeler.
    • If you have the business process model already opened in the business process modeler, then perform step 2.
  2. Drag required <User Interface> from the Workspace Documents > <Solution> > <Project> content tree on to a required activity in the process model that needs human intervention. The User Interface is associated with the activity and a delivery model is created for the User Interface.
  3. Double-click the activity to which the User Interface is attached. Alternatively, right-click the activity and select Properties. The <Activity>- Task Properties pane appears.
  4. Set the properties of the User Interface activity (human activity).
  5. Click . The business process model with User Interface activity is created.
  6. Right-click in the business process modeler and select Business Process Execution > Validate and generate BPML. Alternatively, in Workspace Documents > <Solution> > <Project>, right-click the business process model and select Business Process Execution > Validate and generate BPML. If there are no warnings, a status message appears indicating that there are no warnings. If there are warnings, resolve the errors and re-validate the business process model.
  7. Right-click in the business process modeler and select Business Process Execution > Publish to Organization. Alternatively, in Workspace Documents > <Solution> > <Project>, right-click the business process model and select Business Process Execution > Publish to Organization.The business process model is published to organization.
  8. Right-click in the business process modeler and select Business Process Execution > Run. Alternatively, in Workspace Documents > <Solution> > <Project>, right-click the business process model and select Business Process Execution > Run. The business process model is instantiated.

You have successfully achieved human interaction by using required User Interface in a business process model.

Example of Designing a Business Process Model with User Interface

The following example describes the procedure to model a business process model to display information on a product, which can be modified and displays a non-transactional form to fill in the UnitPrice and ReorderLevel details.

Business Requirements
The business process model should satisfy the following requirements:

  1. Display an XForm to enter the Product ID.
  2. Display another XForm, which shows details about the product based on the information provided in Step 1. These details should be editable.
  3. Display a third XForm, which shows the Product ID and ProductName. The XForm should also display two other fields, UnitPrice and ReorderLevel, which are editable.
  4. Display a fourth XForm, notification activity to the Purchase Manager displaying the ProductID and UnitPrice of the product.

Prerequisites

  1. A Get Product ID User Interface is created with Product ID as an input field.
  2. A Get Product Details User Interface is created to get the product details.
  3. An Update Product Details User Interface is created from the GetProduct method to update the product details in the database.
  4. A Notify Application Service User Interface is created to display the ProductID and UnitPrice of the product.
  5. You can use the above User Interfaces directly in a business process model as the WSDLs are already available which describe the input and output messageof the User Interface.

Designing the business process model

  1. Drag required User Interface to create a business process as follows:
  2. For the Get Product ID User Interface, map the Product ID as shown in the following figure:
  3. For the Update Product Details User Interface, map ProductID, ProductName and, UnitPrice and ReorderLevel as shown in the following figure:
  4. For Notify Application Service User Interface, map ProductId to Header and UnitPrice to Task as shown in the following figure:
  5. Save and validate the process model.
  6. Publish the model to runtime.
  7. Run the process to execute it.